import http from '@/service/http'
import type * as T from '@/types/api/index'
const systemApi: T.ISystemApi = {
  upload(data, onUploadProgress) {
    if (onUploadProgress) {
      return http.upload('/file/upload', data, onUploadProgress)
    } else {
      return http.upload('/file/upload', data)
    }
  },
}

export default systemApi
